package Multithreading.Exercise001;

/**
 * ClassName:ThreadDome004
 * Package:Multithreading.Exercise
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/3/5-16:22
 * @Version:v1.0
 */
public class ThreadDome004 {
    //public static void yield() 出让线程/礼让线程

    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();


        t1.setName("飞机");
        t2.setName("坦克");


        t1.start();
        t2.start();
    }
}
